<script src="clients/html/js/socket.io/socket.io.js"></script>
<script src="js/socket.io-stream.js"></script>
<script src="js/jquery.min.js"></script>
<script>
    
$(function () {
    var socket = io.connect('/user');

    var stream = ss.createStream();

    // upload a file to the server.
    ss(socket).emit('IamReadyOrWaterver', stream);

    stream.on('data', function (chunk) {
        console.log('got %d bytes of data', chunk.length);
    })
});
</script>